package mqtt

import "time"

type (
	CmdReply struct {
		Result bool      `json:"result"`
		Err    error     `json:"err"`
		Time   time.Time `json:"time"`
	}
)

func NewCmdReply(r bool, e error) *CmdReply {
	return &CmdReply{
		Result: r,
		Err:    e,
		Time:   time.Time{},
	}
}
